<template>
    <div class="footer">
        <div class="item"><router-link to="/home"  class="nav_item" active-class="nav_color"><van-icon name="home-o" size="30px"/>首页</router-link></div>
        <div class="item"><router-link to="/cart"  class="nav_item" active-class="nav_color"><van-icon name="shopping-cart-o" size="30px"/>购物车</router-link></div>
        <div class="item"><router-link to="/order"  class="nav_item" active-class="nav_color"><van-icon name="records-o" size="30px"/>订单</router-link></div>
        <div class="item"><router-link to="/mine"  class="nav_item" active-class="nav_color"><van-icon name="manager-o" size="30px"/>我的</router-link></div>
    </div>
</template>
<script>
import { defineComponent } from 'vue';
export default defineComponent({
    name:'footer',
    
})
</script>
<style lang="less" scoped>
.footer{
    display: flex;
    font-size: 12px;
    background-color: #fff;
    border-top: 1px solid #eee;
    .item{
        flex:1;
        display:flex;
        justify-content: center;
        .nav_color{
            color: #ffc400;
        }
        .nav_item{
            display: flex;
            flex-flow: column;
            align-items: center;
        }

    }
}



</style>